<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>danceWeui框架</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<meta content="telephone=no" name="format-detection">
    <link rel="stylesheet" href="../css/weui.min.css">
    <link rel="stylesheet" href="../css/danceWeui.css">
</head>
<body>

<div style="height:1000px;">往下拉</div>
<div class="daweui-scrolltop">
	<div class="daweui-scrolltop_item">
		<span class="iconfontzz icon-xiangshangjiantou daweui-scrolltop_img"></span>
		<text class="daweui-scrolltop_text">首页</text>
	</div>
	<div class="daweui-scrolltop_item">
		<img src="" class="daweui-scrolltop_img">
	</div>
</div>


<script src="../js/jquery.min.js"></script>
<script>
$(window,document).bind('scroll',function(){
	if($(this).scrollTop() > 120){
		$('.top').fadeIn('slow');
	}else{
		$('.top').fadeOut('slow');
	}
});

$(".top").bind("click",function(){
	$("html,body").animate({"scrollTop":0});
});
</script>
</body>
</html>